package com.sinbader.xiaole.common.model.params;

import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.StringUtils;

@Data
@Accessors(chain = true)
public class WxUserInfoParams {

	private String openId;
	private String nickName;
	private String city;
	private String province;
	private String country;
	private String headImgUrl;
	private String avatarUrl;
	private String unionId;
	private String code;

	public String getAvatar() {
		return StringUtils.isNotBlank(avatarUrl) ? avatarUrl : headImgUrl;
	}

}